<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        #the-canvas {
            border: 1px solid black;
            direction: ltr;
        }
    </style>
</head>

<body>


    <h1>PDF.js 'Hello, world!' example</h1>

    <canvas id="the-canvas"></canvas>

    <script src="//mozilla.github.io/pdf.js/build/pdf.js"></script>
    <script src="./index.js"></script>
</body>

</html>